#define _CRT_SECURE_NO_WARNINGS 1
#include<string>
#include"String.h"
int main()
{
	ssw::String s1("abcd");
	s1.push_back('A');
	s1.append("BBB");
	s1.append("CCC");
	s1 += "DDD";
	s1 += 'E';
	s1.insert(15, '1');
	s1.insert(15,"FFF");
	size_t n = s1.find('1',10);
	size_t n1 = s1.find("FFF",8);
	
	
	ssw::String::iterator it = s1.begin();
	while (it!=s1.end())
	{
		

		cout << *it << " ";
		++it;
	}
	cout << endl;
	ssw::String s2(s1);
	ssw::String::iterator it2 = s2.begin();
	while (it2 != s2.end())
	{


		cout << *it2 << " ";
		++it2;
	}

	return 0;
}